package com.ruoyi.orders.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单明细对象 order_items
 * 
 * @author ruoyi
 * @date 2025-11-10
 */
public class OrderItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private String id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String productType;

    /** 价格类型：adult-成人，child-儿童 */
    @Excel(name = "价格类型：adult-成人，child-儿童")
    private String priceType;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 出行日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出行日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date travelDate;

    /** 预定人姓名 */
    @Excel(name = "预定人姓名")
    private String contactName;

    /** 预定人手机号 */
    @Excel(name = "预定人手机号")
    private String contactMobile;

    /** 预定人邮箱 */
    @Excel(name = "预定人邮箱")
    private String contactEmail;

    /** 支付方式：alipay-支付宝，wechat-微信，unionpay-银联 */
    @Excel(name = "支付方式：alipay-支付宝，wechat-微信，unionpay-银联")
    private String payMethod;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private BigDecimal totalAmount;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal actualAmount;

    /**  出行人id */
    @Excel(name = " 出行人id")
    private Long travelerId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }

    public void setPriceType(String priceType) 
    {
        this.priceType = priceType;
    }

    public String getPriceType() 
    {
        return priceType;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setTravelDate(Date travelDate) 
    {
        this.travelDate = travelDate;
    }

    public Date getTravelDate() 
    {
        return travelDate;
    }

    public void setContactName(String contactName) 
    {
        this.contactName = contactName;
    }

    public String getContactName() 
    {
        return contactName;
    }

    public void setContactMobile(String contactMobile) 
    {
        this.contactMobile = contactMobile;
    }

    public String getContactMobile() 
    {
        return contactMobile;
    }

    public void setContactEmail(String contactEmail) 
    {
        this.contactEmail = contactEmail;
    }

    public String getContactEmail() 
    {
        return contactEmail;
    }

    public void setPayMethod(String payMethod) 
    {
        this.payMethod = payMethod;
    }

    public String getPayMethod() 
    {
        return payMethod;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }

    public void setActualAmount(BigDecimal actualAmount) 
    {
        this.actualAmount = actualAmount;
    }

    public BigDecimal getActualAmount() 
    {
        return actualAmount;
    }

    public void setTravelerId(Long travelerId) 
    {
        this.travelerId = travelerId;
    }

    public Long getTravelerId() 
    {
        return travelerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productType", getProductType())
            .append("priceType", getPriceType())
            .append("createdAt", getCreatedAt())
            .append("orderNo", getOrderNo())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("travelDate", getTravelDate())
            .append("contactName", getContactName())
            .append("contactMobile", getContactMobile())
            .append("contactEmail", getContactEmail())
            .append("payMethod", getPayMethod())
            .append("totalAmount", getTotalAmount())
            .append("discountAmount", getDiscountAmount())
            .append("actualAmount", getActualAmount())
            .append("travelerId", getTravelerId())
            .toString();
    }
}
